--- ./Steadyflow.Core/DownloadService.vala.orig	2011-05-22 09:29:17.000000000 +0000
+++ ./Steadyflow.Core/DownloadService.vala	2012-11-28 09:15:51.000000000 +0000
@@ -122,10 +122,10 @@
 			file.serialize (keys);
 		}
 		
-		string data = keys.to_data ();
+		string file_contents = keys.to_data ();
 		
 		try {
-			get_state_file ().replace_contents (data, data.length, null, false, FileCreateFlags.NONE, null);
+			get_state_file ().replace_contents (file_contents.data, null, false, FileCreateFlags.NONE, null);
 		} catch (Error e) {
 			stderr.printf ("Cannot save downloads state");
 		}
